Component({
    
    pageLifetimes: {
        show() {
          if (typeof this.getTabBar === 'function' &&
            this.getTabBar()) {
            this.getTabBar().setData({
              selected: 1
            })
          }
        }
    },
    
    data: {
      icon:[
        {
          id: 1,
          name:'sale.png',
          url:'/pages/board/sale/sale',
          nickname:'销售'
        },
        {
          id: 2,
          name:'chuhuo.png',
          url:'',
          nickname:'出货'
        },
        {
          id: 3,
          name:'customer.png',
          url:'/pages/board/customer/customer',
          nickname:'客户'
        },
        {
          id: 4,
          name:'jiage.png',
          url:'/pages/board/price/price',
          nickname:'价格'
        },
        {
          id: 5,
          name:'jiage1.png',
          url:'',
          nickname:'毛利'
        },
        {
          id: 6,
          name:'huikuan.png',
          url:'',
          nickname:'回款'
        },
        {
          id: 7,
          name:'huikuanruzhang.png',
          url:'',
          nickname:'应收'
        },
        {
          id: 8,
          name:'bancailei.png',
          url:'',
          nickname:'板商'
        },
        {
          id: 9,
          name:'gongcheng-1.png',
          url:'',
          nickname:'工程'
        },
        {
          id: 10,
          name:'piliangxiadan.png',
          url:'',
          nickname:'批量'
        },
        {
          id: 11,
          name:'cangkukucun.png',
          url:'',
          nickname:'库存'
        },
        {
          id: 12,
          name:'caidanlan-caigou-caigoudaohuotixing.png',
          url:'',
          nickname:'采板'
        },
        {
          id: 13,
          name:'wuliu.png',
          url:'',
          nickname:'物流'
        },
        {
          id: 14,
          name:'jiaoqi.png',
          url:'',
          nickname:'交期'
        },
        {
          id: 15,
          name:'a-ziyuan546.png',
          url:'',
          nickname:'品质'
        }
      ],
      
    },

    methods: {

      onLoad:function(){
        wx.setNavigationBarTitle({
          title: '看板'
        })
      },
      
    }
  })